package com.scuec.trainingmanagementsys.service;

import com.scuec.trainingmanagementsys.entity.Student;
import com.scuec.trainingmanagementsys.entity.Teacher;

import java.util.List;
import java.util.Map;

public interface TeacherService {

    // 整表查询
    List<Teacher> getAllTeachers();

    // 根据工号查询
    Teacher getByNumber(String number);

    // 姓名模糊查询
    List<Teacher> searchByName(String name);

    // 学院查询
    List<Teacher> getByCollege(String college);

    // 姓名+学院多条件查询
    List<Teacher> searchByNameAndCollege(String name, String college);

    // 删除单条记录（工号）
    int deleteByNumber(String number);

    // 多选删除（工号列表）
    int deleteBatchByNumbers(List<String> numbers);

    // 插入记录
    int insertTeacher(Teacher teacher);

    // 修改记录（工号作为条件）
    int updateTeacher(Teacher teacher);

    // 根据工号和密码查询教师
    Teacher getByNumberAndPassword(String number, String password);

    // 获取教师总数
    int getTeacherCount();

    Teacher getTeacherByNumberAndPassword(String teacherNumber, String password);

    Integer getTeacherIdByNumber(String teacherNumber);

    Teacher findByTeacherNumber(String teacherNumber);

    Teacher getTeacherProfile(String teacherNumber);
    // 新增方法声明，用于更新教师信息
    int updateTeacherByNumber(String teacherNumber, Map<String, Object> teacherData);
}